var express = require('express')
var db = require('./db.js')

var router = express.Router()
var bodyParser = require('body-parser')
var md5 = require('md5-nodejs')
var urlencodedParser = bodyParser.urlencoded({ extended: false })

var multer = require('multer')

//获取列表
router.get('/list', async function(req, res) {
  let { ids } = req.query
  var sql = `select * from msbd where id in (${ids})`
  let data = await db.doSql(sql)
  res.send(JSON.stringify(db.hand(data)))
})

module.exports = router
